# 作者: 郑驭泷
# 2025年03月18日23时14分19秒
# 2395042511@qq.com
import os


# def yichang():#捕获异常
#     code=input("请输入代码:")
#     assert len(code)>=8,"密码长度应大于8位"
#     return code
# try:
#     print(yichang())
# except Exception as result:
#     print(result)
# print(os.getcwd())
# print(os.listdir())
def scan_dir(path, width):
    for i in os.listdir(path):
        print("" * width + i)
        new_i = path + "/" + i
        if os.path.isdir(new_i):
            scan_dir(new_i, width + 4)


scan_dir(".", 0)
